﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第五十八题
//BC60 带空格直角三角形图案
//https://www.nowcoder.com/practice/192d1039c3d44155bb868073f5482670?tpId=107&tqId=33341&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int n = 0;
    while (scanf("%d", &n) != EOF) {
        //控制行数
        for (int i = 0; i < n; i++) {
            int j = 0;
            //输出空格
            for (j = 0; j < n - i - 1; j++) {
                printf("  ");
            }
            //输出*
            for (int k = 0; k < n - j; k++) {
                printf("* ");
            }
            printf("\n");
        }
    }
    return 0;
}